﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ITTestingSystem.Domain.Entities
{
    /// <summary>
    /// Specifies the category of test
    /// </summary>
    /// 
    public class Category
    {
        /// <summary>
        /// Primary key of the categories entity in database table
        /// </summary>
        /// 
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// Returns the name of category
        /// </summary>
        /// 
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// Returns the description for the category
        /// </summary>
        /// 
        [Required]
        public string Description { get; set; }




        /// <summary>
        /// Returns all tests in this category
        /// </summary>
        /// 
        public virtual ICollection<Test> TestsInCategory { get; set; } 
    }
}
